<?php

namespace app\common\model;

use think\Model;

class Pay extends Model
{
    protected $autoWriteTimestamp =true;
    protected $type = [
        
        'create_time'  =>  'timestamp:Y/m/d H:i:s',
        'update_time'  =>  'timestamp:Y/m/d H:i:s',
    
    ];
    
    public function getChannelAttr($val){
        $arr = ['wx_pub'=>'微信公众号','union'=>'银联','wx_mini'=>'小程序','ali'=>'支付宝','wx_app'=>'微信app'];
        return $arr[$val];
    }
    
}
